<template>
  <div class="btns">
    <Button v-auth="'assessProgress'" color="success" @click="pass">通过</Button>
    <Button v-auth="'assessEliminate'"  color="#5981D0" @click="dieout">淘汰</Button>
    <Button color="warning" @click="surrender">放弃</Button>
  </div>
</template>

<script setup lang='ts'>
import { ref } from "vue";
import { Button } from "@/components/Button";

const pass = () => {
  console.log('通过考核 pass')
}
const emits =defineEmits(['surrender','dieOut'])
const surrender =()=>{
  console.log('surrender')
  emits('surrender','考核评价')
}
const dieout = () => {
  emits('dieOut','考核评价')
  console.log('dieout 考核评价')
}


</script>
<style lang="less" scoped>
.btns {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
</style>